package com.zimmur.common;

public enum StatusCodeEnum {
	//app请求返回码
	CODE000000("000000","处理成功"),
	CODE100000("100000","处理失败"),
	CODE100100("100100","验证码发送失败!请求次数超过限制"),
	CODE100104("100104","手机号码不正确"),
	CODE100200("100200","游客身份需要登录才可操作"),
	CODE100401("100401","签名校验失败"),
	CODE100402("100402","请求已失效"),
	CODE100403("100403","公钥已过期"),
	CODE100404("100404","没有数据"),
	CODE200100("200100","登录失败,用户或密码错误"),
	CODE200101("200101","登录成功,设备更换"),	
	CODE200201("200201","手机验证码错误"),
	CODE200202("200202","手机号码已注册"),
	CODE200203("200203","用户名已存在,请更换用户名"),
	CODE200204("200204","帐号或手机号不正确"),
	CODE200205("200205","用户原密码错误，修改失败"),
	CODE200401("200401","Token验证失败,用户登录过期"),
	CODE300301("300301","赏金不够"),
	CODE300404("300404","话题不存在"),
	CODE400404("400404","商品不存在"),
	CODE500501("500501","商品库存不足,请修改购买数量"),
	//CODE600404("600404","用户不存在"),
	//CODE700100("700100","注册成功，已发放注册礼包"),
	CODE700141("700141","密码错误"),
	CODE700142("700142","密码修改成功"),
	CODE700143("700143","手机号码已注册"),
	CODE700160("700160","当前已经是星客身份,不需要申请认证"),
	CODE700240("700240","已处于申请状态"),
	CODE700301("700301","优惠券已失效,请重新选择优惠券"),
	CODE700302("700302","当前优惠券已失效,请选择其他优惠券"),
	CODE700303("700303","当前订单金额不满足此优惠券使用条件,请选择其他优惠券"),
	CODE700304("700304","当前优惠券尚未生效,请选择其他优惠券"),
	CODE700305("700305","当前优惠券不适用,请选择其他优惠券"),
	
	CODE700401("700401","该愿望单已经存在,添加失败"),
	CODE700402("700402","该订单中已有商品申请了售后,正在受理中"),
	CODE700403("700403","整单申请售后只能申请退款"),
	CODE700404("700404","当前售后状态不允许取消售后服务"),
	CODE700405("700405","当前售后状态不允许确认收货"),
	
	//API返回码
	APICODE000000("000000","处理成功"),
	APICODE100000("100000","处理失败"),
	APICODE100401("100401","参数有误"),
	APICODE100402("100402","请求超时"),
	APICODE100403("100403","token 验证失败");
	;
	private final String code;
	private final String msg;
	
	private StatusCodeEnum(String code,String msg){
		this.code=code;
		this.msg=msg;
	}

	public String getCode() {
		return code;
	}

	public String getMsg() {
		return msg;
	}
	
	public static void main(String[] args) {
		StatusCodeEnum enum1 = StatusCodeEnum.CODE200100;
		System.out.println(enum1.getCode() + " "+ enum1.getMsg());
	}
}
